import navBottom from '../common/nav-bottom.vue'
import './aboutqqc.scss';
// import {XHeader} from 'vux';
import XHeader from 'vux/src/components/x-header/index.vue'
import CONSTANT from '@/common/constants.js';
import http from '@/common/http.js';

export default {
  name: 'articleDetails',
  components: {navBottom, XHeader},
  data () {
    return {
      titles: '关于亲青筹',
      obj: {
        answer: '',
        donateWay: '',
        donatebBill: '',
        fundGrade: '',
        fundSummary: '',
        honor: '',
        procedureBill: '',
        qqcSummary: '',
        qualificationCertificate: '',
        refund: '',
        registerCertificate: '',
        serviceTerm: ''
      },
      witchShow: true
    }
  },
  mounted () {
    if (this.$route.query.witchOne == 'guanyu') {
      this.titles = '关于亲青筹'
      this.witchShow = true
    } else {
      this.witchShow = false
      this.titles = '服务条款'
    }
    console.log(CONSTANT)
    http.post(CONSTANT.ABOUT_QQC, {}, (res) => {
      console.log(res)
      if (res.code == 200) {
        this.obj = res.obj
      }
    })
  }
}
